<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh; height: 100%">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <div class="footer-context">
          <a-link href="https://gitee.com/rosezzi/projects" target="_blank"
            >源码地址
          </a-link>
          <a-link
            href="https://www.yuque.com/facai-ronka/pf4zbp"
            target="_blank"
            >学习文档 by Rosezzi
          </a-link>
        </div>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
#basicLayout .content {
  background: #fbfbfb;
}

#basicLayout .footer {
  background: white;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer-context {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}
</style>

<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
</script>
